package com.xhsj.user.hr.process.processDefinition.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhsj.user.hr.process.hrLeaveProcess.query.ApprovalHiTaskQuery;
import com.xhsj.user.hr.process.processDefinition.entity.TbGlobalApprovalHiTask;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 流程-历史表 Mapper 接口
 * </p>
 *
 * @author liuqinghua
 * @since 2020-08-31
 */
@Mapper
public interface TbGlobalApprovalHiTaskMapper extends BaseMapper<TbGlobalApprovalHiTask> {

    /**
     * 审批意见
     * @author liuqinghua
     * @date Aug 31, 2020 5:17:39 PM
     */
    List<ApprovalHiTaskQuery> getApprovalHiTaskList(@Param("dataId") Long dataId,
                                                    @Param("businessId") Long businessId);

    void updateDataIdByBusInessIdAndDataId(@Param("businessId") Long businessId,
                                           @Param("dataId") Long dataId,
                                           @Param("oldId") Long oldId);

    void updateHiTask(@Param("entity") TbGlobalApprovalHiTask entity);
}
